import{ut as e}from"./B603vO-13smUKN.js";import{p as t}from"./BsMqS_8I4FRuz8.js";import{D as n,On as r,b as i,g as a,k as o,mt as s,o as c,qt as l,v as u,y as d}from"./CIxmKYxc4tZcJF.js";import{D as f,c as p,i as m,l as h,t as g}from"./DcwiUW8R1GKRvl.js";import{o as _}from"./CV1Qssq_3vcbC7.js";import{t as v}from"./DJeJfhW-4iv1Az.js";import{t as y}from"./Ci1jkrOX22RfFv.js";import{o as b}from"./BbxvatETxeTHf.js";import"./C3Xax3Tz4BagVD.js";var x={key:0,class:`app-pay-right`},S=o({__name:`app-pay-right`,props:{editableItem:{}},setup(e){let o=e,u=a(()=>o.editableItem);return(e,a)=>r(t).hideEditRight?d(``,!0):(s(),i(`div`,x,[u.value?(s(),i(c,{key:0},[n(r(p),{modelValue:u.value.contact,"onUpdate:modelValue":a[0]||=e=>u.value.contact=e,title:e.$t(`document.labelContact`)},null,8,[`modelValue`,`title`]),n(r(v),{title:e.$t(`document.labelDate`)},{default:l(()=>[n(r(g),{modelValue:u.value.date,"onUpdate:modelValue":a[1]||=e=>u.value.date=e},null,8,[`modelValue`])]),_:1},8,[`title`]),n(f,{modelValue:u.value.amount,"onUpdate:modelValue":a[2]||=e=>u.value.amount=e,currency:u.value.currency,"onUpdate:currency":a[3]||=e=>u.value.currency=e,title:e.$t(`document.labelAmount`),"currency-editable":``},null,8,[`modelValue`,`currency`,`title`]),n(r(y),{modelValue:u.value.title,"onUpdate:modelValue":a[4]||=e=>u.value.title=e,autosize:``,title:e.$t(`document.labelTitle`),class:`full app-input-text`,lazy:``,rows:`1`},null,8,[`modelValue`,`title`]),n(r(h),{modelValue:u.value.category,"onUpdate:modelValue":a[5]||=e=>u.value.category=e,title:e.$t(`document.labelCategory`)},null,8,[`modelValue`,`title`]),n(r(m),{modelValue:u.value.tags,"onUpdate:modelValue":a[6]||=e=>u.value.tags=e,title:e.$t(`document.labelTags`)},null,8,[`modelValue`,`title`]),n(r(_),{modelValue:u.value.star,"onUpdate:modelValue":a[7]||=e=>u.value.star=e,title:e.$t(`document.labelStar`)},null,8,[`modelValue`,`title`]),n(r(_),{modelValue:u.value.confirmed,"onUpdate:modelValue":a[8]||=e=>u.value.confirmed=e,title:e.$t(`document.labelConfirmed`)},null,8,[`modelValue`,`title`])],64)):d(``,!0)]))}}),C={class:`app-pay`},w=o({__name:`app-pay`,props:{id:{}},setup(t){let n=t;e(`app-pay`);let o=a(()=>n.id),c=b.workspace?.useReactive(o);return(e,t)=>(s(),i(`div`,C,[r(c)?(s(),u(S,{key:0,"editable-item":r(c)},null,8,[`editable-item`])):d(``,!0)]))}});export{w as default};